/**
 * Created by johnforrest on 2017/10/19.
 */
$(document).ready(function () {
    $("body").on("click",bodyHandler);
    $("div").on("click",divHandler);
    $("div").on("click",divHandler2());
})

function  bodyHandler(e) {
    // console.log("hello");
    // console.log(e);
    conlog(e);


}
function divHandler(e) {
    // console.log(e);
    conlog(e);


    // e.stopPropagation();//阻止父类标签冒泡
    e.stopImmediatePropagation();//组织所有的标签冒泡
}
function divHandler2(e) {
    // console.log(e);
    conlog(e);

}

function conlog(e) {
    console.log(e);
}